import request from '@/utils/request'

// 查询appointment列表
export function listAppointment(query) {
    return request({
        url: '/appointment/appointment/list',
        method: 'get',
        params: query
    })
}

// 查询appointment详细
export function getAppointment(appointmentId) {
    return request({
        url: '/appointment/appointment/' + appointmentId,
        method: 'get'
    })
}

// 新增appointment
export function addAppointment(data) {
    return request({
        url: '/appointment/appointment',
        method: 'post',
        data: data
    })
}

// 修改appointment
export function updateAppointment(data) {
    return request({
        url: '/appointment/appointment',
        method: 'put',
        data: data
    })
}

// 删除appointment
export function delAppointment(appointmentId) {
    return request({
        url: '/appointment/appointment/' + appointmentId,
        method: 'delete'
    })
}
